﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WLMes.Models
{
    /// <summary>
    /// 需求单
    /// </summary>
    public class EQUIP_Times_request
    {
        /// <summary>
        /// 请求编号
        /// </summary>
        public string RequestCode { get; set; }
        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }
        /// <summary>
        /// 工序编号
        /// </summary>
        public string OperationCode { get; set; }
        /// <summary>
        /// 工序短名称
        /// </summary>
        public string OperationShortName { get; set; }
        /// <summary>
        /// 事件码
        /// </summary>
        public ushort EventCode { get; set; }
        /// <summary>
        /// 请求（操作）时间
        /// </summary>
        public string RequestTime { get; set; }
        /// <summary>
        /// 产线或设备标识
        /// </summary>
        public int LineOrEquipment { get; set; }
        /// <summary>
        /// 使用次数数据集合
        /// </summary>
        public List<NumberOrTimesSets> NumberOrTimesSets { get; set; } = new List<NumberOrTimesSets>();
        /// <summary>
        /// 使用次数/时长对应的实际采集时间
        /// </summary>
        public string CollectTime { get; set; }

    }

    /// <summary>
    /// 使用次数数据集合
    /// </summary>
    public class NumberOrTimesSets
    {
        /// <summary>
        /// 设备ID
        /// </summary>
        public string EquipmentID { get; set; }
        /// <summary>
        /// 使用次数
        /// </summary>
        public int Number { get; set; }
        /// <summary>
        /// 使用时长
        /// </summary>
        public string Times { get; set; }

    }



    /// <summary>
    /// 回传数据
    /// 返回信息
    /// </summary>
    public class EQUIP_Times_response
    {
        /// <summary>
        /// 事件码
        /// </summary>
        public ushort EventCode { get; set; }
        /// <summary>
        /// 描述信息
        /// </summary>
        public string EventDescription { get; set; }
        /// <summary>
        /// 清零标志
        /// </summary>
        public int Clear { get; set; }

    }
}
